import 'camera_product_plugin_platform_interface.dart';

/// 摄像头插件

class CameraProductPlugin {
  void onListening(void Function(dynamic event) onData) {
    return CameraProductPluginPlatform.instance.onListening(onData);
  }

  Future<String?> getPlatformVersion() {
    return CameraProductPluginPlatform.instance.getPlatformVersion();
  }

  ///初始化相机
  Future<String?> initCameraSDK() {
    return CameraProductPluginPlatform.instance.initCameraSDK();
  }

  /// 扫描蓝牙设备
  Future<String?> scanBluetooth() {
    return CameraProductPluginPlatform.instance.scanBluetooth();
  }

  ///连接蓝牙设备
  Future<String?> connectBluetooth(String deviceJson) {
    return CameraProductPluginPlatform.instance.connectBluetooth(deviceJson);
  }

  ///扫描WIFI
  Future<String?> scanWIFI() {
    return CameraProductPluginPlatform.instance.scanWIFI();
  }

  ///连接WIFI
  Future<String?> connectWIFI(String wifiJson) {
    return CameraProductPluginPlatform.instance.connectWIFI(wifiJson);
  }

  ///拍照
  Future<String?> takePhoto() {
    return CameraProductPluginPlatform.instance.takePhoto();
  }

  ///移除相机监听
  Future<String?> removeCameraListener() {
    return CameraProductPluginPlatform.instance.removeCameraListener();
  }

  ///断开蓝牙设备
  Future<String?> disConnectBluetooth() {
    return CameraProductPluginPlatform.instance.disConnectBluetooth();
  }

  ///获取当前已连接设备
  Future<String?> getCurrentDevice() async {
    return CameraProductPluginPlatform.instance.getCurrentDevice();
  }

  ///获取当前已连接设备SSID
  Future<String?> getCurrentDeviceSSID() async {
    return CameraProductPluginPlatform.instance.getCurrentDeviceSSID();
  }

  ///获取当前已连接设备WIFI状态
  Future<String?> getCurrentDeviceWifiSatate() async {
    return CameraProductPluginPlatform.instance.getCurrentDeviceWifiSatate();
  }
}
